package org.eclipse.stp.policy_builder.model.source;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;

public class ParameterMap {
	String keyName,value ;
	private ArrayList keySet = new ArrayList<String>();
	private HashMap<String, SourceParameter> map = new HashMap<String, SourceParameter>(); 
	
	public ParameterMap(){
		
	}
	
	@Deprecated
	public void setKey(String keyName){
		if(!keySet.contains(keyName))
			keySet.add(keyName);
	}
	
	public Iterator<String> getKeySet(){
		return map.keySet().iterator();
	}
	
	public int getSize(){
		return map.size();
	}
	
	public void setValue(String keyName,SourceParameter value){
		map.put(keyName, value) ;
	}
	
	public SourceParameter getValue(String key){
		return (SourceParameter) map.get(key) ;
	}
	
	
}
